package 数组工具类Arrays.test02;

import java.util.Arrays;

public class ArrayTest02 {
    public static void main(String[] args) {
        int[] arr = {1,2,43,456,5467,567,79,4,10,2345,768,98,};
        Arrays.sort(arr);
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
        int index = Arrays.binarySearch(arr,98);
        System.out.println(index);
    }
}
